package com.ogj.shiro.mapper;

import com.ogj.shiro.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from user where username=#{username}")
    public User getUserByUsername(String username);

    @Select("select count(1) from user where username=#{username}")
    public int getCountByUsername(String username);

    @Select("select *from user where id=#{id}")
    public User getUserById(Integer id);
}
